package com.yopuo.api.pay.alipay;

import com.yopuo.api.pay.model.Product;
import org.springframework.ui.ModelMap;
import javax.servlet.http.HttpServletRequest;

/**
 * 方法描述: 支付宝支付
 * @author: zzh
 * @date: 2021/1/20
 */
public interface CpAliPayServer {

    /**
     * 电脑支付
     * @param product
     * @param map
     * @return
     */
    public String  pcPay(Product product, ModelMap map);

    /**
     * 手机H5支付
     * @param product
     * @param map
     * @return
     */
    public String  mobilePay(Product product, ModelMap map);

    /**
     * 扫码支付
     * @param product
     * @param map
     * @return
     */
    public String  qcPay(Product product, ModelMap map);

	/**
	 * app支付服务端
	 * @param product
	 * @param map
	 * @return
	 */
    public String  appPay(Product product, ModelMap map);

    /**
     * 支付宝异步回调
     * @param request
     * @return
     */
	public String notify(HttpServletRequest request);
	
	/**
	 * 支付宝支付PC端前台回调
	 * @param request
	 * @return  String
	 */
	public String  frontRcvResponse(HttpServletRequest request);
}
